package com.elitesland.demo.config;

import com.elitesland.core.util.SpringContextHolder;
import com.elitesland.model.SysConfigProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * .
 *
 * @author Kaiser（wang shao）
 * @date 2021-02-01
 */
@Configuration
@EnableConfigurationProperties(SysConfigProperties.class)
@EnableTransactionManagement
@EnableCaching
public class SysConfig {

    @Bean
    public SpringContextHolder springContextHolder() {
        return new SpringContextHolder();
    }
}
